// const moduleInfo = module.info;

const resources = [
  // menu
  {
    atomName: 'Role Management',
    atomStaticKey: 'roleManagement',
    atomRevision: 2,
    atomCategoryId: 'a-base:menu.BasicAdmin',
    resourceType: 'a-base:menu',
    resourceConfig: JSON.stringify({
      module: 'a-base',
      atomClassName: 'role',
      atomAction: 'read',
    }),
    resourceIcon: ':role:role',
    appKey: 'a-appbooster:appSystem',
    resourceRoles: 'template.system',
    resourceSorting: 1,
  },
  {
    atomName: 'User Management',
    atomStaticKey: 'userManagement',
    atomRevision: 2,
    atomCategoryId: 'a-base:menu.BasicAdmin',
    resourceType: 'a-base:menu',
    resourceConfig: JSON.stringify({
      module: 'a-base',
      atomClassName: 'user',
      atomAction: 'read',
    }),
    resourceIcon: '::person',
    appKey: 'a-appbooster:appSystem',
    resourceRoles: 'template.system',
    resourceSorting: 2,
  },
  // function
  // deprecated
  {
    atomName: 'User Management',
    atomStaticKey: 'user',
    atomRevision: -1,
    atomCategoryId: 'a-base:function.Basic',
    resourceType: 'a-base:function',
    resourceConfig: JSON.stringify({
      actionPath: '/a/baseadmin/user/list',
    }),
    resourceRoles: 'template.system',
  },
  // deprecated
  {
    atomName: 'Role Management',
    atomStaticKey: 'role',
    atomRevision: -1,
    atomCategoryId: 'a-base:function.Basic',
    resourceType: 'a-base:function',
    resourceConfig: JSON.stringify({
      actionPath: '/a/baseadmin/role/list',
    }),
    resourceRoles: 'template.system',
  },
  // deprecated
  {
    atomName: 'Atom Right Management',
    atomStaticKey: 'atomRight',
    atomRevision: -1,
    atomCategoryId: 'a-base:function.Basic',
    resourceType: 'a-base:function',
    resourceConfig: JSON.stringify({
      actionPath: '/a/baseadmin/atomRight/list',
    }),
    resourceRoles: 'template.system',
  },
  // deprecated
  {
    atomName: 'Resource Right Management',
    atomStaticKey: 'resourceRight',
    atomRevision: -1,
    atomCategoryId: 'a-base:function.Basic',
    resourceType: 'a-base:function',
    resourceConfig: JSON.stringify({
      actionPath: '/a/baseadmin/resourceRight/list',
    }),
    resourceRoles: 'template.system',
  },
  {
    atomName: 'Auth Management',
    atomStaticKey: 'auth',
    atomRevision: 2,
    atomCategoryId: 'a-base:menu.BasicAdmin',
    resourceType: 'a-base:menu',
    resourceConfig: JSON.stringify({
      actionPath: '/a/baseadmin/auth/list',
    }),
    resourceIcon: ':role:shield-key',
    appKey: 'a-appbooster:appSystem',
    resourceRoles: 'template.system',
    resourceSorting: 3,
  },
  {
    atomName: 'Category Management',
    atomStaticKey: 'category',
    atomRevision: 2,
    atomCategoryId: 'a-base:menu.BasicAdmin',
    resourceType: 'a-base:menu',
    resourceConfig: JSON.stringify({
      actionPath: '/a/baseadmin/category/management',
    }),
    resourceIcon: '::folder-open',
    appKey: 'a-appbooster:appSystem',
    resourceRoles: 'template.system',
    resourceSorting: 4,
  },
  {
    atomName: 'Tag Management',
    atomStaticKey: 'tag',
    atomRevision: 2,
    atomCategoryId: 'a-base:menu.BasicAdmin',
    resourceType: 'a-base:menu',
    resourceConfig: JSON.stringify({
      actionPath: '/a/baseadmin/tag/management',
    }),
    resourceIcon: ':outline:label-outline',
    appKey: 'a-appbooster:appSystem',
    resourceRoles: 'template.system',
    resourceSorting: 5,
  },
  // deprecated
  {
    atomName: 'Select Users',
    atomStaticKey: 'selectUsers',
    atomRevision: -1,
    atomCategoryId: 'a-base:function.Basic',
    resourceType: 'a-base:function',
    resourceConfig: JSON.stringify({}),
    resourceRoles: 'template.system',
  },
];
module.exports = resources;
